import 'package:flutter/material.dart';

class MyApp15 extends StatelessWidget {
  const MyApp15({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text(
            'ListView.separated Example',
            style: TextStyle(color: Colors.white, fontSize: 20),
          ),
          backgroundColor: Colors.red,
          centerTitle: true,
        ),
        body: ListView.separated(
          itemCount: 100,
          separatorBuilder: (BuildContext context, int index) =>
              const Divider(height: 1, color: Colors.red),
          itemBuilder: (BuildContext context, int index) {
            return ListTile(title: Text('Item $index'));
          },
        ),
      ),
    );
  }
}
